<template>
  <div class="moviewrap">
          <!-- 头部 -->
    <div class="header">
      <div class="address">
        <img src="//gw.alicdn.com/tfs/TB1mKkzl9zqK1RjSZFpXXakSXXa-50-50.svg" alt />
        <span @click="$router.push('/city')">{{$store.state.City.name}}</span>
      </div>
      <ul class="tablist">
        <router-link tag="li" to="/home/hostshow/nowshow" active-class="active">正在热映</router-link>
        <router-link tag="li" to="/home/hostshow/futershow" active-class="active">即将上映</router-link>
      </ul>
    </div>

        <router-view></router-view>
  </div>

  
</template>


<style lang="scss" scoped>
.active {
    color: red;
    font-weight: 600;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      bottom:8px;
      left: 50%;
      transform: translateX(-70%);
      width: 24px;
      height: 2px;
      background: red;
    }
  }
.moviewrap{
   height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.header {
  width: 375px;
  height: 50px;
  display: flex;
  .address {
    width: 158px;
    height: 50px;
    position: relative;
    line-height: 50px;
    img {
      width: 25px;
      height: 25px;
      position: absolute;
      top: 10px;
      left: 6px;
    }
    span {
      color: #333;
      font-weight: 700;
      position: absolute;
      left: 35px;
      top: 0px;
      &::before {
        content: "";
        position: absolute;
        left: 36px;
        top: 22px;
        border-style: solid;
        border-width: 6px;
        border-color: #000 transparent transparent transparent;
      }
    }
  }
  .tablist {
    height: 50px;
    width: 188px;
    display: flex;
    flex: 1;
    li {
      list-style: none;
      width: 94px;
      height: 50px;
      margin-top: 14px;
      font-size: 20px;
      // color: #777;
    }
  }
}
</style>